package cn.xiaoming.car.pojo.car.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;
import java.time.LocalDateTime;

/**
 * @author Anan
 */
@Data
@TableName("car")
public class Car implements Serializable {
    /**
     * 数据ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String title;
    private Long brandId;
    private Long categoryId;
    private Long seriesId;
    private Long vehicleStylesId;
    private String url;
    private BigDecimal listPrice;
    private Date registration;
    private String plateNumber;
    private String year;
    private String mileage;
    private String address;
    private String description;
    private Integer sort;
    private Integer isChecked;
    private String checkUser;
    private Date gmtCheck;
    private Integer enable;
    /**
     * 数据创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    /**
     * 数据最后修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;


}
